<include file="__THEME__/header" />

<include file="../Public/top_reg" />
<div class="content no_bg"><!-- 内容 begin  -->
  <div class="main no_l">
    <div class="mainbox">
    <div class="mainbox_R">
	<p class="right_box" >
	<a href="{:U('home/Myshop/add')}" class="btn_reg" >免费发布信息</a>
	</p>
    <php>if(!$mid){</php>
    <include file="__THEME__/login" />
    <php>}</php>
    {:W('Recshop')}
    {:W('Recuser')}  
    <div class="right_box">
	<script type="text/javascript"><!--
	google_ad_client = "ca-pub-1704385913878111";
	/* 销售页 */
	google_ad_slot = "3951910903";
	google_ad_width = 200;
	google_ad_height = 200;
	//-->
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
	</div>
    </div>
      <div class="mainbox_CR" >
        <include file="_tab" />
        <php>if($aboutkey){</php>
        <div class="topic_bg">
        <div class="topic">
            <div class="dt">
              <gt name="mid" value="0">
              <em><img class="icoWrite" src="__THEME__/images/zw_img.gif" alt="图片"/> <a href="javascript:void(0)" onclick="weibo.quickpublish('#{$aboutkey|str_replace='"','&quot;',###|addslashes}# ')">我也说几句</a> &nbsp;&nbsp;<span class="ico_tuijian" style="margin:0"></span> 
              <span id="follow_topic">
	            <if condition="$aboutkey_follow eq 'havefollow'">
	              <a href="javascript:void(0)" onclick="unfollow_topic('{$aboutkey|str_replace='"','&quot;',###|addslashes}','{$aboutkey_id}','#follow_topic')">已关注该话题</a>
	            <else />
	              <a href="javascript:void(0)" onclick="follow_topic('{$aboutkey|str_replace='"','&quot;',###|addslashes}','#follow_topic')">关注该话题</a>
	            </if>
	          </span></em>
	          </gt>
              <strong>今日看点：</strong>大家一起聊"<a href="{:U('home/user/search',array('k'=>$aboutkey))}">{$aboutkey}</a>"吧
            </div>
            </volist>
          </div>
        </div>
        </div>
        <php>}</php>
        <div class="laSOSO">
          <div class="left f14px"><strong>搜索一下：</strong></div>
          <div>
            
            <form id="form1" name="form1" method="post" action="{:U('index/Shop/index')}"> 
            <p class="sosuo">
            <input type="text" id="s_keyword" name="k" style="width:300px;" class="text mr5" value="搜商品 / 输入商品名试试" onfocus="if(this.value == '搜商品 / 输入商品名试试'){this.value = '';}" onblur="if(this.value == ''){this.value = '搜商品 / 输入商品名试试';}">
            <input type="submit" value="搜索" class="btn_b">
           </p> 
            </form>
          
            <p class="reci">
            <span class="cGray2">热词：</span>
            <volist name="hotkeys" id="hk">
              <a href="{:U('home/user/search',array('k'=>urlencode($hk['name'])))}">{$hk.name|getShort=###,10}</a>&nbsp;&nbsp;
            </volist></p>
          </div>
        </div>
        <!-- ========== 菜单 begin ============= -->
        <div class="tab-menu" id="square_list_tab"><!-- 切换标签 begin  -->
          <ul>
            <li><a class="feed_item on" href="{:U('index/Shop/index')}"><span>出售信息</span></a></li>
            <li><a class="feed_item" href="{:U('index/Qiugou/index')}"><span>求购信息</span></a></li>
            <li><a class="feed_item" href="{:U('index/User/index')}"><span>用户/摊位</span></a></li>
          </ul>
        </div>
<!--商品分类 begin-->
<div class="goods_Type">
<div class="ty <if condition= "$_GET['tid']==0 || $_GET[tid]==''"> on</if>">
<strong class="f14px">
<a href="{:U('index/Shop/index')}">全部</a>
</strong>
</div>
<volist name="typelist" id="list">
<div class="ty <if condition= "$_GET['tid']==$list['type_id']"> on </if>">
<strong class="f14px">
<a href="{:U('index/Shop/index',array('tid'=>$list['type_id']))}">{$list['title']}</a>
</strong>
</div>
</volist>
</div>
<!--商品分类  end-->
   <!--  出售信息  begin--> 
<div class="goodsBox">
<php>if($goodslist){</php>
<volist name="goodslist" id="vo">
<table  class="goods_tab"  border="0" cellspacing="0" cellpadding="0" id="list_{$vo['id']}">
  <tr>
    <td width="100px"> <div class="goods_img_box2">
    <php>if($vo[gimage]){</php>
<a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}" target="_blank"><img src="__UPLOAD__/goods/s_{$vo[gimage]}" alt="商品图片"/></a>
<php>}else{</php>
<a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}" target="_blank"><img src="__THEME__/images/no_image_s.gif" alt="无商品图片"/></a>
<php>}</php>
</div></td>
    <td><table class="goods_tab2" border="0" cellspacing="0" cellpadding="0">
    <tr>
    
    <td width="40%"><a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}" target="_blank">{$vo['title']}</a></td>
    <td width="10%">￥{$vo['gprice']}</td>
    <td width="30%">{$vo['school']}</td>
    <td width="20%"><php>if($vo['uid']==$mid){</php><a href="{:U('home/Myshop/edit',array('id'=>$vo['id']))}">编辑</a> <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这条信息?')" callback="Deleted({$vo.id})">删除</a><php>}</php></td>
  </tr>
  <tr>
    <td>{$vo['uname']} <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$vo['qq']}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$vo['qq']}:45" alt="点击这里给我发消息" title="点击这里给我发消息"></a></td>
    <td>N {$vo['gnumber']} </td>
    <td>{$vo['location']}</td>
    <td> {$vo.utime|friendlyDate}</td>
  </tr>
</table></td>
  </tr>
</table>
  
<p class="lineD_btm"></p>
</volist>

<php>}else{</php>
暂无内容
<php>}</php>

</div>
<div  class="page">{$page}</div>
<!--  出售信息 end-->     
    </div>
    <div class="clear"></div>
  </div>
</div>
</div>
<!-- 内容 end -->
<script>
function Deleted(goods_id){
    $.post(U('home/Myshop/doDel'),{id:goods_id},function(rel){
	    if(rel==1){
		$('#list_'+goods_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else{
		ui.error('删除失败');		
		}
	
	});

}
</script>
<include file="__THEME__/footer" /> 